import java.util.concurrent.Callable;

public class MyTask implements Callable<String> {
    private int id;
    public MyTask(int id) {
        this.id = id;
    }
    @Override
    public String call() throws Exception{
        String result = "线程" + Thread.currentThread().getId() + ",id:"+this.id;
        return result;
    }
}
